package com.teemo.dp.singleton.demo4;


import java.util.concurrent.TimeUnit;

/**
 * @author Teemo
 */
public class Demo {
    public static void main(String[] args) throws Exception {

        for (int i = 0; i < 20; i++) {
            new Thread(() -> {
                Washer instance = Washer.getInstance();
                System.out.println(instance);
            }).start();
        }

        TimeUnit.SECONDS.sleep(1);
    }
}
